import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/admin/news',
    method: 'get',
    params: query
  })
}

export function updateRecord(id,query) {
  return request({
    url: '/admin/news/'+id,
    method: 'put',
    params: query
  })
}